package com.itmk.web.select_seat.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author java实战基地
 * @since 2023-10-28
 */
@Getter
@Setter
@TableName("select_seat")
public class SelectSeat implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "select_id", type = IdType.AUTO)
    private Integer selectId;

    /**
     * 座位id
     */
    private Integer seatId;

    /**
     * 状态: 1:已预约 2：已签到 3：已签退4：已取消5：已违约
     */
    private String status;

    /**
     * 预览室名称
     */
    private String roomName;

    /**
     * 楼层
     */
    private String floorName;

    /**
     * 预览室id
     */
    private Integer roomId;
    private Integer stuId;

    /**
     * 座位名称
     */
    private String seatName;

    /**
     * 预约时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime orderTime;

    /**
     * 最早签到时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime firstTime;

    /**
     * 最迟签到时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime lastTime;

    /**
     * 使用状态 0：未使用 1：使用中
     */
    private String useStatus;

    /**
     * 签退时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @TableField(exist = false)
    private String stuName;
    @TableField(exist = false)
    private String phone;
    //开门时间
    @TableField(exist = false)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime beginTime;
}
